package services;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

import models.MediaCollection;
import models.SongCollection;
import models.Song;

public class SongProcessor /*extends MediaCollection*/ {
	private SongCollection collectionOfSongs;
	
	public SongProcessor(SongCollection collection) {
		this.collectionOfSongs = collection;
	}

	public void sort(Comparator<Song> compare) {
		Collections.sort(collectionOfSongs.getMySongs(), compare);
	}

	public void showCollection() {
		for (Song song : collectionOfSongs.getMySongs()) {
			System.out.println(song);
		}
		System.out.println("");
	}

	public SongCollection getCollectionOfSongs() {
		return collectionOfSongs;
	}

	public void setCollectionOfSongs(SongCollection collectionOfSongs) {
		this.collectionOfSongs = collectionOfSongs;
	}
	
	

}
